<template>
  <div class="container">
    <div class="cardList">
      <div class="cardItem" @click="toRedEnvelopes">
        <div class="left">
          <div class="title">万元红包券</div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
        </div>
        <div class="right">
          <div class="num">
            999
            <span>元</span>
          </div>
          <div class="desc">
              定金抢先预付
          </div>
        </div>
      </div>
      <div class="cardItem">
        <div class="left">
          <div class="title">万元红包券</div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
        </div>
        <div class="right">
          <div class="num">
            999
            <span>元</span>
          </div>
          <div class="desc">
              定金抢先预付
          </div>
        </div>
      </div>
      <div class="cardItem">
        <div class="left">
          <div class="title">万元红包券</div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
        </div>
        <div class="right">
          <div class="num">
            999
            <span>元</span>
          </div>
          <div class="desc">
              定金抢先预付
          </div>
        </div>
      </div>
      <div class="cardItem">
        <div class="left">
          <div class="title">万元红包券</div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
          <div class="desc">
            <div class="dot"></div>
            <span class="text">999元抵车款</span>
          </div>
        </div>
        <div class="right">
          <div class="num">
            999
            <span>元</span>
          </div>
          <div class="desc">
              定金抢先预付
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        toRedEnvelopes(){
            this.$router.push("/redEnvelopes")
        }
    },
};
</script>

<style lang="scss" scoped>
.container {
  padding: 0.14rem;
  display: flex;
  justify-content: center;
  background: rgba(247, 247, 247, 1);
  .cardList {
    .cardItem {
      width: 3.47rem;
      height: 1.32rem;
      background-image: url("../../../assets/images/Card_bg.png");
      background-size: 100%;
      position: relative;
      .left {
        position: absolute;
        left: 0.36rem;
        top: 0.2rem;
        .title {
          font-size: 0.16rem;
          font-family: PingFangSC-Medium;
          font-weight: 500;
          color: rgba(0, 0, 0, 1);
        }
        .desc {
          margin-top: 0.08rem;
          display: flex;
          align-items: center;
          .dot {
            width: 0.04rem;
            height: 0.04rem;
            background: rgba(138, 41, 196, 1);
            display: inline-block;
            margin-right: 0.05rem;
          }
          .text {
            font-size: 0.1rem;
            font-family: PingFangSC-Regular;
            font-weight: 400;
            color: rgba(153, 153, 153, 1);
          }
        }
      }
      .right {
        position: absolute;
        right: 0.4rem;
        top: .36rem;
        .num {
          font-size: 0.26rem;
          font-family: PingFangSC-Semibold;
          font-weight: 600;
          color: rgba(138, 41, 196, 1);
          span {
            font-size: 0.13rem;
            font-family: PingFangSC-Semibold;
            font-weight: 600;
            color: rgba(138, 41, 196, 1);
          }
        }
        .desc {
          width: 0.82rem;
          height: 0.21rem;
          line-height: .21rem;
          background: rgba(248, 235, 255, 1);
          border-radius: 0.01rem;
          font-size: .12rem;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: rgba(138, 41, 196, 1);
          margin-top: .07rem;
          text-align: center;
        }
      }
    }
  }
}
</style>

